const path = require('path')
const resolve = dir => path.join(__dirname, dir)
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true
})


module.exports = {
    // baseUrl: './',
    runtimeCompiler: true,
    chainWebpack: config => {
        config.resolve.alias
            .set('@', resolve('src'))
    },
    devServer: {
        host: 'localhost',
        port: 8080,
        proxy: {
            '/api': {
                // http://localhost:8989/api/projectList?page=1
                target: 'http://localhost:8989', //
                changeOrigin: true,
                ws: true,
                pathRewrite: { //重写路径
                    '^/api': ''
                }
            },
        },
    }

}